<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script>
    <title>Document</title>
</head>
<body>
    <!-- 准备 -->
    <div id="add">
        <h2>学习{{school}}</h2>
        <button v-on:click="fu">输出</button>
        <button @click="fu">@输出</button>
        <!-- <button @click="fu1(555)">1输出</button> -->
    </div>
    <script>
        new Vue({
            el:"#add",//绑定add
            data:{//配置数据
                school:"我付款",
            },//存放方法
            methods:{
                fu(e){
                    console.log('秀',e);
                },
                // fu1(number){
                //     alert('喜喜'---+number)
                // }
            }
        })
    </script>
</body>
</html>